home *** CD-ROM | disk | FTP | other *** search
- /** VLTMouse.vlt
- *
- * Demo of how to program VLT's mouse to send something to an ARexx port.
- * See also VLTMouse.rexx.
- *
- **/
- /*
- * Add libraries if necessary
- */
- if show("l", "rexxarplib.library") = 0 then do
- check = addlib('rexxsupport.library', 0, -30, 0)
- check = addlib('rexxarplib.library', 0, -30, 0)
- end
- /*
- * The following sequence determines both VLT's screen and port name.
- */
- vltport = address()
- cols = ScreenCols(vltport)
- if cols == -1 then vltscreen = ""
- else vltscreen = vltport
- /*
- * Start the program that receives the mouse clicks
- */
- "@@VLTMouse.rexx "vltport" "vltscreen
-
- "mousesupport (~rx 'address "vltport"MOUSE %X %Y %x %y %c %l %q')"
-
- exit
-